<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
    <!-- Side Navbar -->
    <nav class="side-navbar">
        <!-- Sidebar Header-->
        <div class="sidebar-header d-flex align-items-center">
            <div class="avatar"><img src="${ctx}/dorm/img/avatar-1.jpg" alt="..." class="img-fluid rounded-circle"></div>
            <div class="title">
                <h1 class="h4">${session_user.username}</h1>
                <p>Web Designer</p>
            </div>
        </div>

        <c:if test="${session_user.roleId==0}">
            <ul class="list-unstyled">
                <!-- 管理员 -->
                <li class="active"><a href="${ctx}/course/MainIndex"> <i class="icon-home"></i>首页</a></li>
                <li><a href="${ctx}/course/index"> <i class="icon-grid"></i>百度地图</a></li>
                <li>
                    <a href="#good_sourse" aria-expanded="false" data-toggle="collapse"> <i class="icon-interface-windows"></i>优质课程</a>
                    <ul id="good_sourse" class="collapse list-unstyled ">
                        <li><a href="#">查看课程</a></li>
                        <li><a href="#">推送课程</a></li>
                    </ul>
                </li>
                <li id="password"><a href="${ctx}/course/password?action=preChange"> <i class="icon-padnote"></i>修改密码</a></li>
                <li><a href="${ctx}/course/loginOut"> <i class="icon-interface-windows"></i>退出系统</a></li>
            </ul>
        </c:if>

        <c:if test="${session_user.roleId==1}">
            <ul class="list-unstyled">
                <!-- 学生用户用户 -->
                <li class="active"><a href="${ctx}/course/MainIndex"> <i class="icon-home"></i>首页</a></li>
                <li><a href="${ctx}/course/index"> <i class="icon-grid"></i>百度地图</a></li>
                <li><a href="${ctx}"> <i class="fa fa-bar-chart"></i>创建个人课程</a></li>
                <li id="12"><a href="dormBuild.action?action=list"> <i class="icon-padnote"></i>自测题库</a></li>
                <li><a href="forms.html"> <i class="icon-padnote"></i>个人笔记</a></li>
                <li><a href="forms.html"> <i class="icon-padnote"></i>观看直播</a></li>
                <li id="password2"><a href="${ctx}/course/password?action=preChange"> <i class="icon-padnote"></i>修改密码</a></li>
                <li><a href="${ctx}/course/loginOut"> <i class="icon-interface-windows"></i>退出系统</a></li>
            </ul>
        </c:if>

        <c:if test="${session_user.roleId==2}">
            <ul class="list-unstyled">
                <!-- 教师用户 -->
                <li class="active"><a href="${ctx}/course/MainIndex"> <i class="icon-home"></i>首页</a></li>
                <li><a href="${ctx}/course/index"> <i class="icon-grid"></i>百度地图</a></li>
                <li><a href="#"> <i class="fa fa-bar-chart"></i>发布课程</a></li>
                <li><a href="#exampledropdownDropdown" aria-expanded="false" data-toggle="collapse"> <i class="icon-interface-windows"></i>线上课程</a>
                    <ul id="exampledropdownDropdown" class="collapse list-unstyled ">
                        <li><a href="#">直播课程</a></li>
                        <li><a href="#">回播视频</a></li>
                    </ul>
                </li>
                <li><a href="${ctx}/teacher/Fileupload"> <i class="icon-padnote"></i>发布作业</a></li>
                <li><a href="${ctx}/teacher/t-showdetailFile"> <i class="icon-padnote"></i>作业信息</a></li>
                <li id="password3"><a href="${ctx}/course/password?action=preChange"> <i class="icon-padnote"></i>修改密码</a></li>
                <li><a href="${ctx}/course/loginOut"> <i class="icon-interface-windows"></i>退出系统</a></li>
            </ul>
        </c:if>

    </nav>



</html>
<!-- JavaScript files-->
<script src="${ctx}/dorm/vendor/jquery/jquery.min.js"></script>
<script src="${ctx}/dorm/vendor/popper.js/umd/popper.min.js"> </script>
<script src="${ctx}/dorm/vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="${ctx}/dorm/vendor/jquery.cookie/jquery.cookie.js"> </script>
<script src="${ctx}/dorm/vendor/chart.js/Chart.min.js"></script>
<script src="${ctx}/dorm/vendor/jquery-validation/jquery.validate.min.js"></script>
<script src="${ctx}/dorm/js/charts-home.js"></script>
<!-- Main File-->
<script src="${ctx}/dorm/js/front.js"></script>


